* ---------------------------------------------- Table 11: Firm-level employment
use "$data_path/database_company_level_emp_synthetic", clear 

reghdfe emp_growth ind_post ind_treated_company interaction, noabsorb noomit vce(cluster company_all_num)
			estadd local time_fe "No"
			estadd local company_fe "No"
			estadd local ind_time_fe "No"
			estadd local county_time_fe "No"
			estadd local company_year_fe "No"
			estimates store reg_a
		

reghdfe emp_growth ind_post ind_treated_company interaction company_year_fe, noabsorb noomit vce(cluster company_all_num)
			estadd local time_fe "No"
			estadd local company_fe "No"
			estadd local ind_time_fe "No"
			estadd local county_time_fe "No"
			estadd local company_year_fe "Yes"
			estimates store reg_b
			
reghdfe emp_growth ind_post ind_treated_company interaction, absorb(year company_all_num) noomit vce(cluster company_all_num)  
			estadd local time_fe "Yes"
			estadd local company_fe "Yes"
			estadd local ind_time_fe "No"
			estadd local county_time_fe "No"
			estadd local company_year_fe "No"
			estimates store reg_c


reghdfe emp_growth ind_post ind_treated_company interaction, absorb(company_all_num industry_time_fe) noomit vce(cluster company_all_num) 
			estadd local time_fe "No"
			estadd local company_fe "Yes"
			estadd local ind_time_fe "Yes"
			estadd local county_time_fe "No"
			estadd local company_year_fe "No"
			estimates store reg_d
			
reghdfe emp_growth ind_post ind_treated_company interaction, absorb(company_all_num county_time_fe) noomit vce(cluster company_all_num)
			estadd local time_fe "No"
			estadd local company_fe "Yes"
			estadd local ind_time_fe "No"
			estadd local county_time_fe "Yes"
			estadd local company_year_fe "No"
			estimates store reg_e	
			
reghdfe emp_growth ind_post ind_treated_company interaction, absorb(company_all_num industry_time_fe county_time_fe) noomit vce(cluster company_all_num)  
			estadd local time_fe "No"
			estadd local company_fe "Yes"
			estadd local ind_time_fe "Yes"
			estadd local county_time_fe "Yes"
			estadd local company_year_fe "No"
			estimates store reg_f
	

esttab  reg_a reg_b reg_c reg_d reg_e reg_f  ///
			using "${tables_path}/table11.tex" ///
			,cells(b(star  fmt(3)) se(par  fmt(3))) stat(time_fe company_fe company_year_fe ind_time_fe county_time_fe r2 N, fmt(%~15s %~15s %~15s  %~15s %~15s %6.3g %9.0g) ///
			layout(\mc{@} \mc{@} \mc{@} \mc{@} \mc{@} @ \mc{@}) labels("Year FE" "Firm FE" "$\reallywidehat{\text{Firm-Year FE}}$" "Industry-Year FE" "County-Year FE" "R2" "N")) ///
			style(tex)  starlevels(^{*} 0.10  ^{**} 0.05 ^{***} 0.01)  mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" )  nonumbers collabels(none) alignment(D{.}{.}{-1}) ///
			coeflabels(company_year_fe "Firm-Year FE" ind_post "Post" ind_treated_company "Treated Firm" interaction "Post \$\times\$ Treated Firm" )  order(ind_post ind_treated_company interaction)  ///
			replace substitute(\_ _) keep(ind_post ind_treated_company interaction) noomit ///
			nolines prefoot(\midrule) postfoot("\bottomrule \end{tabular} }") posthead(\midrule)
